package com.hrms.model;

import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.hrms.domain.DailyCell;
import com.hrms.domain.Task;

public class TaskListModel {
	
	private Task task;
	private Map<Date, DailyCell> dailyCells = new HashMap<Date, DailyCell>();
	
	public Task getTask() {
		return task;
	}
	public void setTask(Task task) {
		this.task = task;
	}
	public Collection<DailyCell> getDailyCells() {
		return dailyCells.values();
	}
	
	public DailyCell getDailyCellByDate(Date date) {
		return dailyCells.get(date);
	}
	public void setDailyCells(Map<Date, DailyCell> dailyCells) {
		this.dailyCells = dailyCells;
	}
	
	public void addDailyCells(DailyCell dc) {
		dailyCells.put(dc.getDate(), dc);
	}
	
}
